<?php require_once('../../core/import.php');?>
<?php User::Permission('NEWS_LIST_RECOMMEND'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {        
        foreach(@Functions::FormArgs('ID') as $Value)
        {
            DB::CExec("update news set M_IsRecommend=1,M_IsRecommend_Datetime=now() where ID=$Value");
        }

        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }
?>